package com.isunland.managesystem.ui;

import android.support.v4.app.Fragment;
import com.isunland.managesystem.entity.CompanyForumType;
import com.isunland.managesystem.entity.Expert;

/**
 * 对象功能:
 * 开发公司: 北京信普达系统工程有限公司
 * 开发人员: HuXiaoDan
 * 创建时间: 2017/3/17 17:18
 */
public class AgriculturalTopicPublishActicity extends SingleFragmentActivity {

  @Override protected Fragment createFragment() {
    CompanyForumType type = (CompanyForumType) getIntent().getSerializableExtra(
        AgriculturalTopicPublishFragment.EXTRA_FORUM_TYPE);
    String from = getIntent().getStringExtra(AgriculturalTopicPublishFragment.EXTRA_TYPE);
    Expert expert =
        (Expert) getIntent().getSerializableExtra(AgriculturalTopicPublishFragment.EXTRA_FROM);
    return AgriculturalTopicPublishFragment.newInstance(type, expert, from);
  }
}